Skip to content

fix(tools): List org releases when find_releases gets projectSlug all - #2428

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/find-releases-all-projects
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/find-releases-all-projects

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

find_releases takes ParamProjectSlugOrAll, whose description tells agents that lowercase all means every project. The handler passed the value straight through as a slug, and @sentry/api listReleases builds /projects/{org}/{projectSlug}/releases/ whenever projectSlug is set. So projectSlug: "all" sent GET /api/0/projects/{org}/all/releases/, which Sentry answers with 404 "Project does not exist".

This maps all to no project, so the call goes to /organizations/{org}/releases/. That matches every other tool that takes ParamProjectSlugOrAll (find_alert_rules, find_monitors, find_uptime_monitors, find_metric_monitors, get_alert_options, get_alert_rule). Project constraints are unaffected: the server injects them and removes projectSlug from the input.

via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_bd0e3bb51881131f8e573681226cb0ce.

--

View Session [Sentry]

find_releases took ParamProjectSlugOrAll, whose description tells agents
that lowercase `all` means every project, but passed the value through as
a slug. That sent GET /projects/{org}/all/releases/, which 404s with
"Project does not exist". Map `all` to no project, like the other tools
that take ParamProjectSlugOrAll.
@vercel

vercel Bot commented Nov 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Nov 19, 2026 1:50pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 19, 2026 1:50pm UTC

Request Review

@sentry-junior

sentry-junior Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

A second MCP user report hit this bug (report count: 2).

  • The agent called find_releases with projectSlug: "all" and got HTTP 404 "Project does not exist". Leaving out projectSlug returned the org-wide releases. Server version 0.42.0, HTTP transport.
  • The bug still happens in production: sentry/mcp-server recorded 1,023 GET …/projects/{org}/all/releases/ spans in the last 24h.

This PR's checks pass and the pattern now has 2 reports, so I'm marking it ready for review.

@sentry-junior
sentry-junior Bot marked this pull request as ready for review November 27, 2026 07:19
@sentry-junior
sentry-junior Bot requested a review from a team as a code owner November 27, 2026 07:20
@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 27, 2026

This branch was successfully deployed

2 active and 1 inactive deployments
Actions — 009b2b78 Deployed Nov 19, 2026 by sentry-junior[bot] via eval #1988
Preview – cli — 009b2b78 Deployed Nov 19, 2026 by vercel[bot]
Preview – sentry-local — 009b2b78 Deployed Nov 19, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants